package com.ruoyi.store.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.store.mapper.StockTakingDetailMapper;
import com.ruoyi.store.domain.StockTakingDetail;
import com.ruoyi.store.service.IStockTakingDetailService;

/**
 * 库存盘点详情Service业务层处理
 * 
 * @author lmj
 * @date 2024-11-04
 */
@Service
public class StockTakingDetailServiceImpl implements IStockTakingDetailService 
{
    @Autowired
    private StockTakingDetailMapper stockTakingDetailMapper;

    /**
     * 查询库存盘点详情
     * 
     * @param id 库存盘点详情主键
     * @return 库存盘点详情
     */
    @Override
    public StockTakingDetail selectStockTakingDetailById(Integer id)
    {
        return stockTakingDetailMapper.selectStockTakingDetailById(id);
    }

    /**
     * 查询库存盘点详情列表
     * 
     * @param stockTakingDetail 库存盘点详情
     * @return 库存盘点详情
     */
    @Override
    public List<StockTakingDetail> selectStockTakingDetailList(StockTakingDetail stockTakingDetail)
    {
        return stockTakingDetailMapper.selectStockTakingDetailList(stockTakingDetail);
    }

    /**
     * 新增库存盘点详情
     * 
     * @param stockTakingDetail 库存盘点详情
     * @return 结果
     */
    @Override
    public int insertStockTakingDetail(StockTakingDetail stockTakingDetail)
    {
        return stockTakingDetailMapper.insertStockTakingDetail(stockTakingDetail);
    }

    /**
     * 修改库存盘点详情
     * 
     * @param stockTakingDetail 库存盘点详情
     * @return 结果
     */
    @Override
    public int updateStockTakingDetail(StockTakingDetail stockTakingDetail)
    {
        return stockTakingDetailMapper.updateStockTakingDetail(stockTakingDetail);
    }

    /**
     * 批量删除库存盘点详情
     * 
     * @param ids 需要删除的库存盘点详情主键
     * @return 结果
     */
    @Override
    public int deleteStockTakingDetailByIds(Integer[] ids)
    {
        return stockTakingDetailMapper.deleteStockTakingDetailByIds(ids);
    }

    /**
     * 删除库存盘点详情信息
     * 
     * @param id 库存盘点详情主键
     * @return 结果
     */
    @Override
    public int deleteStockTakingDetailById(Integer id)
    {
        return stockTakingDetailMapper.deleteStockTakingDetailById(id);
    }
}
